package me.xinping.libs.utils

import android.content.Context
import android.os.Build
import org.junit.Before
import org.junit.runner.RunWith
import org.mockito.Mock
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.annotation.Config

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
@RunWith(RobolectricTestRunner::class)
@Config(constants = BuildConfig::class,
        application = UtilsTestApp::class,
        sdk = [(Build.VERSION_CODES.M)],
        packageName = "me.xinping.libs.utils")
open class BaseTest {

    @Mock
    protected val context: Context = RuntimeEnvironment.application

    @Before
    open fun setUp() {
        println("Bast Test setUp")
    }
}
